#pragma once
#include "StdAfx.h"
#include <string.h>
#include "dmentitybase.h"
#include "PolylineEntityBase.h"
#include "BaseDefine.h"

#define  DIST_CONST 50
class Api
{
public:
	Api(void){} 
	~Api(void){}
	static bool IsDigital(const char* str);
	static bool IsContourCurve(CdmEntityBase* pEntity);
	static dmDbHandle BindAndReturnHandler(CdmEntityBase*);
	static double GetContourElevation(CdmEntityBase* pEntity);
	static BOOL CalculatePts(dmDPoint *& pNewPoints,int nCountPt,dmDPoint* pPoints,int side,CParamSlopeAngle& param_angle,double elevation);
	static BOOL LinearizePart(CGeoPolyline& geoSegment,const CGeoPolyline& geopolyline,double rStart,double rEnd);
	static BOOL CreatePoly(dmDbPolyline*& pNewPolyEntity,const CGeoPolyline & geoPolyline,int color);
	static void Join(CGeoPolyline & geoPolyline,const CGeoPolyline & geoNext);
};
